package com.testjava.julycode;

public class Feibonaqie {

    /**
     * 1 1 2 3 5
     * @param n
     * @return
     */
    private static int feibo(int n){
        int a = 1;
        int b = 1;
        int c = a;
        while (n > 2){
            c = a + b;
            a = b;
            b = c;
            n--;
        }

        return c;
    }
}
